/*
与后台交互模块 （依赖已封装的ajax函数）
 */
import ajax from './ajax'
// const BASE_URL = 'http://local:4000'
const BASE_URL = 'https://www.easy-mock.com/mock/5be3cc7af4410b7e6ee7ce6f/example'
/**
 * 测试接口
 */
export const reqlogin = ({ username, password }) => ajax(BASE_URL + '/user/login', { username, password }, 'POST')

// ({latitude, longitude}) => ajax(BASE_URL + '/shops', {latitude, longitude})